package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Setmeal;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface SetmealDao {
    void addSetMeal(Setmeal setmeal);

    void setSetmealAndCheckGroup(HashMap<String, Integer> map);

    Page<Setmeal> findByCondition(String queryString);

    Setmeal findSetmealById(Integer setmealId);

    void delelteCheckGroupidBySetmealId(Integer setmealId);

    void deleteSetmealById(Integer setmealId);

    Integer findCountOrderIdBySetmealId(Integer setmealId);

    List<Integer> findCheckGroupIdsBySetmealId(Integer setmealId);

    void edit(Setmeal setmeal);

    List<Setmeal> findAllSetmeal();

    Setmeal findAllsBySetmealId(Integer setmealId);

    List<Map<String, Object>> findSetmealNameAndCount();

}
